package com.shycloud.mido.member.service;

import java.util.Map;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shycloud.mido.member.api.entity.SmMemberTeacherApprovalNew;
import com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO;

public interface SmMemberTeacherApprovalNewService extends IService<SmMemberTeacherApprovalNew> {

	/**
	 * 分页获取
	 *
	 * @param page
	 * @param name
	 * @param status
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO>
	 * @author nianhua.jiang
	 * @date 2020/5/20 14:13
	 */
	IPage<SmMemberTeacherApprovalNewVO> getTeacherApprovalPage(Page page, String name, String status, String optId);

	/**
	 * 根据ID 获取教师认证详情
	 *
	 * @param id
	 * @return com.shycloud.mido.member.api.vo.SmMemberTeacherApprovalNewVO
	 * @author nianhua.jiang
	 * @date 2020/5/20 14:53
	 */
	SmMemberTeacherApprovalNewVO getTeacherDetail(Integer id);

	/**
	 * 批量/单一通过审核
	 *
	 * @param ids
	 * @return boolean
	 * @author nianhua.jiang
	 * @date 2020/5/21 14:09
	 */
	boolean accept(Integer[] ids);

	/**
	 * 查询用户是否为平台认证教师
	 *
	 * @param
	 * @return java.util.Map<java.lang.String, java.lang.Object>
	 * @author nianhua.jiang
	 * @date 2020/6/16 18:17
	 */
	Map<String, Object> checkTeacherApproval(String member);

	/**
	 * 教师认证
	 *
	 * @param
	 * @return java.util.Map<java.lang.String, java.lang.Object>
	 * @author nianhua.jiang
	 * @date 2020/8/12 18:29
	 */
	Boolean saveTeacherApproval(SmMemberTeacherApprovalNewVO smMemberTeacherApprovalNewVO);

    boolean sendMsg(String memberId);

}
